package com.cos.ssm1.services.impl;

import com.cos.ssm1.dao.EmpDao;
import com.cos.ssm1.entity.Emp;
import com.cos.ssm1.services.EmpServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/6/9 17:26
 * @description:
 */
@Service
@Transactional
public class EmpServicesImpl implements EmpServices {
    @Autowired
    private EmpDao empDao;

    @Override
    public List<Emp> getAll() {
        return empDao.getAll();
    }
}
